<% if @newsletter.draft? %>
  <p>
    <b>This newsletter is marked as draft, Edit to change.</b>
  </p>
<% end %>

<p>
<%= link_to 'Edit', edit_newsletter_path(@newsletter) %> |
<%= link_to 'Back', newsletters_path %>
</p>

HTML preview:
<div class="preview">
  <%= auto_link(render(:file => 'mass_email/newsletter.text.html.erb')) %>
</div>

Plain text preview:
<div class="preview">
  <pre>
<%= render(:file => 'mass_email/newsletter.text.plain.erb') %>
  </pre>
</div>

<% form_for(@newsletter, :url => send_preview_newsletter_path) do |f| %>
  Send a test email: <%= text_field_tag "email" %>
  <%= submit_tag "Send email", :confirm => "Send test email?" %>
  <%= f.hidden_field :id %>
<% end %>
